//
//  DrawerViewController.h
//  PCNews
//
//  Created by PengchengWang on 16/3/1.
//  Copyright © 2016年 pengchengWang. All rights reserved.
//

#import "BaseViewController.h"

@interface DrawerViewController : BaseViewController
//中间视图控制器
@property(nonatomic,strong)UIViewController *rootVC;
//左侧滑栏控制器
@property(nonatomic,strong)UIViewController *leftVC;
//右侧滑栏控制器
@property(nonatomic,strong)UIViewController *rightVC;
//手势
@property(nonatomic,strong)UITapGestureRecognizer *tap;

//设置中间视图控制器
-(void)setRootViewController:(UIViewController*)viewcontroller;
//展示中间视图的方法(关闭抽屉)
-(void)showRootViewController:(UIViewController*)rootViewController;
//打开抽屉
-(void)showleftViewController:(UIViewController*)leftViewController;
//设置跟视图控制器(外界调用切换界面)
+(void)setRootViewController:(Class)rootClass;

@end
